package com.swu.pad.activity.dao;

import java.util.Date;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.swu.pad.activity.entity.Activity;

public interface ActivityDao extends JpaRepository<Activity, String> {

	public List<Activity> findActivityByAssignmentId(String assignmentId);

	public List<Activity> findByAssignmentIdAndStartDateLessThanEqualAndEndDateGreaterThan(String assignmentId, Date date1, Date date2);

	public Activity findActivityById(String activityId);
}
